/*
 * Copyright (C) 2011 Dirk Weißenborn, dirk.weissenborn@gmail.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.weissenborn.colabtex.server.user;

import java.io.Serializable;

/**
 * The persistence Class IdNameMapping which maps a group id to a groupname
 */
public class IdNameMapping implements Serializable{
	
	/** The group id. */
	private String groupId;
	
	/** The group name. */
	private String groupName;
	
	/**
	 * Instantiates a new id name mapping.
	 */
	public IdNameMapping() {
	}
	
	/**
	 * Instantiates a new id name mapping.
	 *
	 * @param groupId the group id
	 * @param groupName the group name
	 */
	public IdNameMapping(String groupId, String groupName) {
		this.setGroupId(groupId);
		this.setGroupName(groupName);
	}

	/**
	 * Gets the group id.
	 *
	 * @return the group id
	 */
	public String getGroupId() {
		return groupId;
	}

	/**
	 * Sets the group id.
	 *
	 * @param groupId the new group id
	 */
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	/**
	 * Gets the group name.
	 *
	 * @return the group name
	 */
	public String getGroupName() {
		return groupName;
	}

	/**
	 * Sets the group name.
	 *
	 * @param groupName the new group name
	 */
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
}
